package com.zb.service;

import com.zb.model.TOrder;
import com.zb.model.TOrderDetail;

import java.util.Date;
import java.util.List;

public interface OrderService {

	public List<TOrder> findOrdersService(String userid);
	
	public List<TOrder> findAllOrdersService();
	
	public List<TOrder> findOrdersByTimeService(Date begin,Date end);
	
	public List<TOrderDetail> findOrderDetailService(String orderId);
	
	public double getOrderSale(String orderId);
	
	public double getOrderProfit(String orderId);
	
	public boolean qxOrdersService(String orderid);
	
	public boolean reOrdersService(String orderid,String newStatus);
	
	public boolean addOrdersService(TOrder torder);
	
	public boolean addOrderDetailService(TOrderDetail tod);
}
